home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Fchmod(2) Oct. 7, 1991 Fchmod(2)
-
-
- N✓NA✓AM✓ME✓E
- Fchmod - set file access permissions
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <filesys.h>
-
- LONG Fchmod( char *name, WORD mode );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓F_✓c_✓h_✓m_✓o_✓d changes the file access permissions for the file
- named _✓n_✓a_✓m_✓e. The new access permissions are given in the
- word _✓m_✓o_✓d_✓e, which may be constructed by or'ing together the
- following symbolic constants (defined in filesys.h):
-
- S_IRUSR,
- Read, write, and execute permission (respectively)
- for the owner of the file.
-
- S_IRGRP,
- Read, write, and execute permission (respectively)
- for the file's group.
-
- S_IROTH,
- Read, write, and execute permission for everybody
- else.
-
- Note that not all file systems support all of these bits;
- bits not supported by a file system will be ignored.
-
- Note also that "execute" permission for a directory means
- permission to search the directory for a file name or name
- component.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- 0 on success
-
- EACCDN if the calling process has an effective uid which
- differs from the owner of the file and which is not 0.
-
- EFILNF if the file is not found
-
- EPTHNF if the path to the file is not found.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓F_✓a_✓t_✓t_✓r_✓i_✓b(2), _✓F_✓x_✓a_✓t_✓t_✓r(2)
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-